package net.wofly.sale.exchange.domain;


import java.util.List;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import lombok.Data;

/**
 * 卡兑换
 * <ul>
 * 	<li>兑换时，记录兑换流水</li>
 * 	<li>同时增加库存</li>
 * </ul>
 * @author lign
 * @version 1.0
 * @created 28-九月-2017 21:36:37
 */
@Data
@Entity
@Table(name = "sale_exchange_cardexchange")
public class CardExchange {

	@Id
	private String cardExchangeID;
	
	/**
	 * 客户id
	 */
	private String customerUserID;
	
	/**
	 * 业务员id
	 */
	private String salesmanUserID;
	
	/**
	 * 卡类类型数量
	 */
	private Integer cardTypeNum;
	
	/**
	 * 兑换卡总数
	 */
	private Integer exchangeTotalNum;
	
	/**
	 * 兑换总价值 
	 */
	private Integer totalVal;
	
	private Long modifyDate;
	
	@Transient
	private String customerUserName;
	
	@Transient
	private String salesmanUserName;
	
	@Transient
	private List<CardExchangeContent> cardExchangeContents;
	
	public CardExchange(){

	}

}